<!DOCTYPE html>
<html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-0 vector-toc-not-available vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-0 skin-theme-clientpref-day vector-sticky-header-enabled" lang="de" dir="ltr"><head>
<meta charset="UTF-8">
<title>.NET Native</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="./_res_/favicon.png">
<link rel="canonical" href="https://de.wikipedia.org/wiki/.NET_Native"> <link href="./_mw_/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.wikimediamessages.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./_mw_/skins.vector.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link href="./_mw_/ext.gadget.citeRef.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.defaultPlainlinks.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonHide.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonLayout.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiCommonStyle.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiDarkmode.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.dewikiResponsive.css" rel="stylesheet" type="text/css">
<link href="./_mw_/ext.gadget.specialSearch.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="./_mw_/site.styles.css">
<link rel="stylesheet" type="text/css" href="./_mw_/noscript.css">
<link rel="stylesheet" type="text/css" href="./_res_/footer.css">
<link rel="stylesheet" type="text/css" href="./_res_/vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-_NET_Native rootpage-_NET_Native skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">.NET Native</span></h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="contentSub">
<div id="mw-content-subtitle"></div>
</div>
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="de" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="de" dir="ltr"><p><b>.NET Native</b> ist die Bezeichnung für eine Technik, die zu <a href="Microsoft" title="Microsoft">Microsofts</a> <a href=".NET_(Oberbegriff)" title=".NET (Oberbegriff)">.NET</a>-Plattform gehört und die Übersetzung einer Anwendung in Maschinencode bereits zum Entwicklungszeitpunkt ermöglicht. Ein <a href="Ahead-of-time-Compiler" title="Ahead-of-time-Compiler">Ahead-of-time-Compiler</a> dient zur Kompilierung von <a href="Microsoft_Store" title="Microsoft Store">Windows Store</a> Apps (<a href="Universal_Windows_Platform" title="Universal Windows Platform">UWP</a>), die in <a href="C-Sharp" title="C-Sharp">C#</a> oder <a href="Visual_Basic_.NET" title="Visual Basic .NET">Visual Basic .NET</a> programmiert sind.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> .NET Native beinhaltet außerdem eine <a href="Laufzeitumgebung" title="Laufzeitumgebung">Laufzeitumgebung</a> und wird als Bestandteil oder Ergänzung von <a href=".NET_Core" class="mw-redirect" title=".NET Core">.NET Core</a> betrachtet, der aber bisher nur für UWP-Apps unterstützt wird.
</p><p>Für .NET gibt es seit der Version .NET Core 3.0 auch eine Möglichkeit der AOT-Kompilierung durch sogenannte <i>Ready-To Run Images</i>. Die JIT-Kompilierung wird dabei als (optionaler) Schritt bei der Veröffentlichung der Anwendung (dotnet publish) vorab ausgeführt. Das Ergebnis, der (plattformspezifische) Maschinencode wird gemeinsam mit dem <a href="Managed_Code" class="mw-redirect" title="Managed Code">Managed Code</a> in der <a href=".NET_Framework#Assemblies" class="mw-redirect" title=".NET Framework">Assembly</a>-Datei gespeichert.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> Die Dateien werden hierdurch natürlich größer, insbesondere wenn die Option gewählt wird, das Laufzeitsystem mit in die <a href="Datei" title="Datei">Datei</a> zu integrieren, weitere Optionen beziehen sich dann darauf, das Laufzeitsystem möglichst auf die wirklich benötigten Bestandteile zu kürzen.<sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup>
</p><p>Außerdem wurde über mehrere Jahre ein alternatives Laufzeitsystem für die Ahead-of-time-Kompilierung entwickelt („corert“), das inzwischen auch in den Hauptentwicklungszweig für .NET übernommen wurde und ab der Version .NET 7 unter der Bezeichnung <i>Native AOT</i> zur Verfügung steht.<sup id="cite_ref-4" class="reference"><a href="#cite_note-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> Es ist aber mit erheblichen Einschränkungen verbunden.<sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Geschichte">Geschichte</h2></div>
<p>Die Entwicklung von .NET Native wurde durch Microsoft erstmals im April 2014 bekanntgegeben. Eine Vorabversion des Compilers war in <a href="Visual_Studio" title="Visual Studio">Visual Studio</a> 2013 Update 2 enthalten. Die erste finale Version wurde zusammen mit Visual Studio 2015 verfügbar.
</p>
<div class="mw-heading mw-heading2"><h2 id="Einsatz">Einsatz</h2></div>
<p>Anfänglich konnte der Compiler nur für Windows-Anwendungen benutzt werden, die basierend auf der <a href="Windows_Runtime" title="Windows Runtime">Windows Runtime</a> unter <a href="Windows_8" class="mw-redirect" title="Windows 8">Windows 8</a>.x laufen. Mittlerweile ist er für Anwendungen einsetzbar, die für die <a href="Universal_Windows_Platform" title="Universal Windows Platform">Universal Windows Platform</a> und <a href="Windows_10" class="mw-redirect" title="Windows 10">Windows 10</a> entwickelt wurden. Microsofts Angaben zufolge verbessert .NET Native die <a href="Rechenleistung" title="Rechenleistung">Performance</a> von UWP-Anwendungen um bis zu 60 Prozent.<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Literatur">Literatur</h2></div>
<ul><li>Mascha Schnellbacher: <a rel="nofollow" class="external text" href="https://entwickler.de/online/windev/net-native-universal-windows-platform-entwickler-171183.html"><i>.NET Native und die Bedeutung für Universal-Windows-Platform-Entwickler</i></a>, in: entwickler.de vom 21. August 2015</li>
<li>Holger Schwichtenberg: <i>Native Framework-Evolution</i>, in: <a href="Dotnetpro" title="Dotnetpro">dotnetpro</a> Nr. 8/2014, S. 74 ff.</li>
<li>Holger Schwichtenberg: <a rel="nofollow" class="external text" href="https://www.heise.de/developer/meldung/C-erzeugt-jetzt-auch-nativen-Code-2161015.html"><i>C# erzeugt jetzt auch nativen Code</i></a>, in: <a href="Heise_online" title="Heise online">heise developer</a> vom 3. April 2014</li>
<li>Holger Schwichtenberg: <i>Zwei auf einen Streich</i>, in: <a href="Windows_Developer" title="Windows Developer">Windows Developer</a> Nr. 10/2015, S. 8–14, auch <a rel="nofollow" class="external text" href="https://entwickler.de/online/windev/zwei-auf-einen-streich-173866.html">online</a> bei entwickler.de</li>
<li>Holger Schwichtenberg: <i>Begrenztes Universum</i>, in: <a href="IX_%E2%80%93_Magazin_f%C3%BCr_professionelle_Informationstechnik" title="IX – Magazin für professionelle Informationstechnik">iX – Magazin für professionelle Informationstechnik</a> Nr. 2/2016, S. 50 ff.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Weblinks">Weblinks</h2></div>
<ul><li><style data-mw-deduplicate="TemplateStyles:r261891140">
/* start https://de.wikipedia.org/ */
.mw-parser-output .webarchiv-memento a{color:inherit}
/* end https://de.wikipedia.org/ */
</style><a rel="nofollow" class="external text" href="https://web.archive.org/web/20160304211224/http://dotnet.github.io/docs/getting-started/overview.html">Überblick über .NET bei mirGitHub</a> (<span class="webarchiv-memento"><a href="Webarchivierung#Begrifflichkeiten" title="Webarchivierung">Memento</a></span> vom 4. März 2016 im <i><a href="Internet_Archive" title="Internet Archive">Internet Archive</a></i>)</li>
<li><a rel="nofollow" class="external text" href="https://msdn.microsoft.com/de-de/library/dn584397.aspx">Dokumentation zu .NET Native</a> im <a href="MSDN" class="mw-redirect" title="MSDN">MSDN</a></li>
<li><a rel="nofollow" class="external text" href="https://www.nuget.org/packages/Microsoft.NETCore.Runtime.Native/">.NET Native als Package</a> in <a href="NuGet" title="NuGet">NuGet</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Einzelnachweise">Einzelnachweise</h2></div>
<ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text"><span class="cite">mairaw: <a rel="nofollow" class="external text" href="https://docs.microsoft.com/de-de/dotnet/framework/net-native/net-native-and-compilation"><i>.NET Native und Kompilierung.</i></a><span class="Abrufdatum"> Abgerufen am 28. November 2019</span> (deutsch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3A.NET+Native&rft.title=.NET+Native+und+Kompilierung&rft.description=.NET+Native+und+Kompilierung&rft.identifier=https%3A%2F%2Fdocs.microsoft.com%2Fde-de%2Fdotnet%2Fframework%2Fnet-native%2Fnet-native-and-compilation&rft.creator=mairaw&rft.language=de-de"> </span></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><a href="#cite_ref-2">↑</a></span> <span class="reference-text"><span class="cite"><a rel="nofollow" class="external text" href="https://devblogs.microsoft.com/dotnet/announcing-net-core-3-0-preview-6/"><i>Announcing .NET Core 3.0 Preview 6.</i></a> 12. Juni 2019,<span class="Abrufdatum"> abgerufen am 28. November 2019</span> (amerikanisches Englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3A.NET+Native&rft.title=Announcing+.NET+Core+3.0+Preview+6&rft.description=Announcing+.NET+Core+3.0+Preview+6&rft.identifier=https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fannouncing-net-core-3-0-preview-6%2F&rft.date=2019-06-12&rft.language=en-US"> </span></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><a href="#cite_ref-3">↑</a></span> <span class="reference-text"><span class="cite">tdykstra: <a rel="nofollow" class="external text" href="https://docs.microsoft.com/de-de/dotnet/core/tools/dotnet-publish"><i>Befehl „dotnet publish“ - .NET CLI.</i></a><span class="Abrufdatum"> Abgerufen am 16. April 2022</span> (deutsch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3A.NET+Native&rft.title=Befehl+%E2%80%9Edotnet+publish%E2%80%9C+-+.NET+CLI&rft.description=Befehl+%E2%80%9Edotnet+publish%E2%80%9C+-+.NET+CLI&rft.identifier=https%3A%2F%2Fdocs.microsoft.com%2Fde-de%2Fdotnet%2Fcore%2Ftools%2Fdotnet-publish&rft.creator=tdykstra&rft.language=de-de"> </span></span>
</li>
<li id="cite_note-4"><span class="mw-cite-backlink"><a href="#cite_ref-4">↑</a></span> <span class="reference-text"><span class="cite">LakshanF: <a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/"><i>Native AOT deployment overview - .NET.</i></a><span class="Abrufdatum"> Abgerufen am 9. November 2022</span> (amerikanisches Englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3A.NET+Native&rft.title=Native+AOT+deployment+overview+-+.NET&rft.description=Native+AOT+deployment+overview+-+.NET&rft.identifier=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdeploying%2Fnative-aot%2F&rft.creator=LakshanF&rft.language=en-us"> </span></span>
</li>
<li id="cite_note-5"><span class="mw-cite-backlink"><a href="#cite_ref-5">↑</a></span> <span class="reference-text"><span class="cite">LakshanF: <a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/"><i>Native AOT deployment overview - .NET.</i></a><span class="Abrufdatum"> Abgerufen am 9. November 2022</span> (amerikanisches Englisch).</span><span style="display: none;" class="Z3988" title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&rfr_id=info%3Asid%2Fde.wikipedia.org%3A.NET+Native&rft.title=Native+AOT+deployment+overview+-+.NET&rft.description=Native+AOT+deployment+overview+-+.NET&rft.identifier=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdeploying%2Fnative-aot%2F&rft.creator=LakshanF&rft.language=en-us"> </span></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><a href="#cite_ref-6">↑</a></span> <span class="reference-text">Mascha Schnellbacher: <a rel="nofollow" class="external text" href="https://web.archive.org/web/20151209234401/https://entwickler.de/online/windev/net-native-universal-windows-platform-entwickler-171183.html"><i>.NET Native und die Bedeutung für Universal-Windows-Platform-Entwickler</i></a> (<span class="webarchiv-memento"><a href="Webarchivierung#Begrifflichkeiten" title="Webarchivierung">Memento</a></span> vom 9. Dezember 2015 im <i><a href="Internet_Archive" title="Internet Archive">Internet Archive</a></i>), in: entwickler.de vom 21. August 2015</span>
</li>
</ol></div><!--htdig_noindex--><div><div class="zim-footer">
Dieser Artikel wurde von <a class="external text" title="Zuletzt bearbeitet am 2025-04-21" href="https://de.wikipedia.org/wiki/?title=.NET_Native&oldid=255351776">Wikipedia</a> herausgegeben. Der Text ist unter <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.de">Creative Commons Attribution-Share Alike 4.0</a> verfügbar, sofern nicht anders angegeben. Für die Mediendateien können zusätzliche Bedingungen gelten.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
<script src="./_webp_/webpHandler.js"></script>
</body></html>